package xyz.lwm.lazycat.annotation;

import xyz.lwm.lazycat.beans.Condition;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author lwm
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.ANNOTATION_TYPE})
public @interface Conditional {

    /**
     * 条件, 所有条件同时满足才生效
     */
    Class<? extends Condition>[] value();

}
